package cn.dugcrs.org.mapper;

import cn.dugcrs.basic.mapper.BaseMapper;
import cn.dugcrs.org.domain.Department;
import cn.dugcrs.org.domain.Employee;
import cn.dugcrs.org.query.EmployeeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @Description: 员工mapper接口
* @Author: Gubcog
* @Version: 1.0
* @Date:  2022/4/19 18:43
*/
public interface EmployeeMapper extends BaseMapper<Employee> {

    // 模块的的接口继承而来
    // 抽屉查询
    List<Employee> findDrawers(Long id);

    /* 
    * @Title: 根据名字查找用户信息
    * @Description: TODO
    * @Author: Gubcog
    * @Version: 1.0
    * @Date:  2022/5/4 19:01  
    * @Parameters: * @param username
    * @Return cn.dugcrs.org.domain.Employee
    */
    Employee loadByUserName(String username);

    /*
    通过shop_id查询数据
     */
    Employee loadByShopId(Long valueOf);

    /**
     * 删除t_employee_role垃圾数据
     * @param id
     */
    void removeEmployeeRoleByEmployeeId(Long id);

    /**
     *
     * @param id
     */
    void saveEmployeeRole(@Param("id") Long id,@Param("ids")List<Long> ids);


    // 模块的其他接口在此编写

}
